package com.chang.bootplus.vo;

import com.chang.bootplus.base.database.Page;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Data
@Accessors(chain = true)
public class ProductVO {

    @ApiModelProperty("商品id")
    private Long id;

    @ApiModelProperty("商品编号")
    private String proNo;

    @ApiModelProperty("商品描述")
    private String message;

    private BigDecimal price;

    @ApiModelProperty("商品名称")
    private String proname;

    @ApiModelProperty("商品所属于的最低分类id （即三级分类id）")
    private Long categoryId;

    @ApiModelProperty("销量")
    private Integer sellnum;

    @ApiModelProperty("商品状态 0为可卖 1为不可卖")
    private Integer proStatus;

    @ApiModelProperty("商品添加时间")
    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime addTime;

    @ApiModelProperty("库存")
    private Integer stock;

    @ApiModelProperty(value = "商品详情(如手机的话显示具体型号，食物的话显示具体口味)",required = true)
    private Map<String,String> mapDetails;

    @ApiModelProperty(value = "商品图片")
    private List<String> listPictures;

}
